package com.zzl.bonds.ticket.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 票的操作记录表
 *
 * @author sunpp
 * @date 2022-02-16 11:14:07
 */
@Data
@TableName("t_ticket_operate_log")
@ApidocModel
@SuppressWarnings("javadoc")
public class TicketOperateLogDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "凭证上一个状态")
    private Integer ticketPreviousStatus;
    @ApidocModelProperty(description = "操作类型 1、开单申请 2、复核通过 3、审批通过 4、签收 5、拆转申请 6、融资申请 7,复核驳回，8，审批驳回，9签收驳回 等")
    private Integer operateType;
    @ApidocModelProperty(description = "票据状态")
    private Integer ticketStatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "开单日期", validate = "yyyy-MM-dd HH:mm:ss")
    private Date invoiceTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "到期日期", validate = "yyyy-MM-dd HH:mm:ss")
    private Date cashTime;
    @ApidocModelProperty(description = "操作人id")
    private Integer operateId;
    @ApidocModelProperty(description = "操作人")
    private String operateUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "操作时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;
    @ApidocModelProperty(description = "企业id,权限使用")
    private String enterpriseId;
    @ApidocModelProperty(description = "签收放企业id")
    private String signEnterpriseId;
    @ApidocModelProperty(description = "部门id")
    private Integer orgId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "修改时间", validate = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @ApidocModelProperty(description = "创建人")
    private Integer creatorId;
    @ApidocModelProperty(description = "修改人")
    private Integer updaterId;
    @ApidocModelProperty(description = "备注")
    private String remark;

}
